<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopJoininBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_joinin_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 255)->comment('用户姓名');
            $table->string('sex', 255)->comment('性别');
            $table->string('phone', 255)->comment('电话');
            $table->string('business_type', 255)->comment('行业类型');
            $table->string('city', 255)->default('')->comment('城市');
            $table->integer('admin_id')->default(0)->comment('操作人id');
            $table->dateTime('admin_time')->comment('操作时间');
            $table->string('admin_content', 255)->default('')->comment('操作内容');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shop_joinin_busin');
    }
}
